using System;
using UnityEngine;

[Serializable]
public class SmoothRandomPosition : MonoBehaviour
{
	public float speed;

	public Vector3 range;

	private Perlin noise;

	private Vector3 position;

	public SmoothRandomPosition()
	{
		speed = 1f;
		range = new Vector3(1f, 1f, 1f);
		noise = new Perlin();
	}

	public void Start()
	{
		position = transform.position;
	}

	public void Update()
	{
		transform.position = position + Vector3.Scale(SmoothRandom.GetVector3(speed), range);
	}

	public void Main()
	{
	}
}
